import random

from config import BASE_DIR
import json

def read_ih(filename):
    with open(BASE_DIR + f'/data/{filename}.json', encoding="utf-8") as f:
        mylist = []
        list_ih = json.load(f)
        for i in list_ih:
            i.pop('desc')
            a = tuple(i.values())
            mylist.append(a)
    return mylist


if __name__ == '__main__':
    print(read_ih(test))
